<ion-view view-title="我的积分" class="mypoint">
	<ion-nav-bar ng-class="baseclass">
		<ion-nav-back-button></ion-nav-back-button>
	</ion-nav-bar>
	<ion-nav-buttons side="right">
		<button class="button button-clear saveText" on-tap="show_detail()">明细</button>
	</ion-nav-buttons>
	
	<ion-content class="bg">
		<div class="padding-10">
			<p class="jfgz" on-tap="openModal_rule()">积分规则</p>
			<p class="dhjl" on-tap="show_record()">兑换记录</p>
		</div>
		<div class="padding-10 text-center">
			<span class="dqjf">{{point.total_point || 0}}</span>
			<img src="./img/guilin/other/point.png" />
			<p class="jjhd">即将获得：{{point.obtained_point}}分</p>
		</div>
		
		<!--商品类型横向滚动栏-->
		<ion-scroll direction="x" scrollbar-x="false">
			<div class="goodsTypes" style="width:{{widthLength}}px;">
				<div class="type" style="width:{{everyLength}}px;" ng-class="{'active':type==''}" on-tap="searchGoods('')">全部</div>
				<div class="type ellipsis" style="width:{{everyLength}}px;" ng-repeat="t in goodsTypes" ng-class="{'active':type==t.id}" on-tap="searchGoods(t.id)">{{t.name}}</div>
			</div>
		</ion-scroll>
		
		<ion-scroll ng-style="myObj" direction="y" lazy-scroll delegate-handle="goodsScroll">
			<ion-refresher pulling-text="下拉刷新..." on-refresh="doRefresh()"></ion-refresher>
			<ul class="list">
				<!--没有数据-->
				<li class="item noData" ng-if="firstHide&&goodsList.length<1">
					<img src="./img/guilin/other/icon_spw@2x.png"/>
					<div class="tip">没有可兑换的商品！</div>
				</li>
				
				<li class="item item-borderless">
					<div class="goodsDiv" on-tap="gotoGoods(item.goods_id)" ng-repeat-start="item in goodsList">
						<div class="imgDiv">
							<img src="{{item.image||noImg}}" />
						</div>
						<div class="goodsName ellipsis-2">{{item.name}}</div>
						<div class="pointDiv">{{item.point}}<img class="pointImg" src="./img/guilin/other/point.png" /></div>
					</div>
					<div class="lineDiv" ng-if="$index%3==2" ng-repeat-end=""></div>
				</li>
			</ul>
			
			<ion-infinite-scroll ng-if="!isLoad&&page.cPage<page.tPage" immediate-check="false" on-infinite="doRefreshMore()" distance="1%"></ion-infinite-scroll>
		</ion-scroll>				
		
	</ion-content>
</ion-view>